<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <title>${style.title} - 校园风采 - 教育新闻网</title>
    <link href="${pageContext.request.contextPath}/static/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .campus-style-detail {
            padding: 30px 0;
        }
        .campus-style-title {
            font-size: 24px;
            color: #333;
            margin-bottom: 20px;
            text-align: center;
        }
        .campus-style-meta {
            text-align: center;
            color: #666;
            font-size: 14px;
            margin-bottom: 30px;
        }
        .campus-style-image {
            width: 100%;
            max-height: 500px;
            object-fit: contain;
            margin-bottom: 30px;
            border-radius: 8px;
        }
        .campus-style-description {
            color: #333;
            line-height: 1.8;
            font-size: 16px;
        }
    </style>
</head>
<body>
    <!-- 引入头部 -->
    <jsp:include page="/user/common/header.jsp"/>
    
    <div class="container">
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="${pageContext.request.contextPath}/user/home">首页</a></li>
                <li class="breadcrumb-item"><a href="${pageContext.request.contextPath}/user/campus-style">校园风采</a></li>
                <li class="breadcrumb-item active">详情</li>
            </ol>
        </nav>
        
        <div class="campus-style-detail">
            <h1 class="campus-style-title">${style.title}</h1>
            <div class="campus-style-meta">
                发布时间：<fmt:formatDate value="${style.createTime}" pattern="yyyy-MM-dd HH:mm"/>
            </div>
            
            <img src="${pageContext.request.contextPath}/${style.imageUrl}" 
                 class="campus-style-image" alt="${style.title}">
                 
            <div class="campus-style-description">
                ${style.description}
            </div>
        </div>
    </div>
    
    <!-- 引入底部 -->
    <jsp:include page="/user/common/footer.jsp"/>
    
    <script src="${pageContext.request.contextPath}/static/js/bootstrap.bundle.min.js"></script>
</body>
</html> 